package com.zscat.web;


import com.alibaba.dubbo.config.annotation.DubboConsumer;
import com.zscat.goods.service.ProductService;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * portal controller
 *
 * @author linux_china
 */
@Controller
public class PortalController {
    @DubboConsumer
    private ProductService  ProductService;

    @RequestMapping("/")
    public String index(Model model) {
        model.addAttribute("user", ProductService.selectByPrimaryKey(33L));
        return "index";
    }
}
